import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import './permission' // permission control
import "@/assets/css/index.css"
import 'element-ui/lib/theme-chalk/index.css';
import plugins from './plugins'
import directive from './directive'
import api from '@/api'
import store from './store'
import { addDateRange } from './utils/ruoyi'
// 图片上传组件
import ImageUpload from '@/components/ImageUpload'


Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.addDateRange = addDateRange
Vue.use(ElementUI)
Vue.use(plugins)
Vue.use(directive)
// 全局组件挂载
Vue.component('ImageUpload', ImageUpload)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
